using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._SpatialAnalystTools._Multivariate
{
    /// <summary>
    /// <para>Band Collection Statistics</para>
    /// <para>Calculates the statistics for a set of raster bands.</para>
    /// <para>计算一组栅格波段的统计数据。</para>
    /// </summary>    
    [DisplayName("Band Collection Statistics")]
    public class BandCollectionStats : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public BandCollectionStats()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_raster_bands">
        /// <para>Input raster bands</para>
        /// <para><xdoc>
        ///   <para>The input raster bands.</para>
        ///   <para>They can be integer or floating point type.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输入栅格波段。</para>
        ///   <para>它们可以是整数类型或浮点类型。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_out_stat_file">
        /// <para>Output statistics file</para>
        /// <para><xdoc>
        ///   <para>The output ASCII file containing the statistics.</para>
        ///   <para>A .txt extension is required.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>包含统计信息的输出 ASCII 文件。</para>
        ///   <para>需要.txt扩展。</para>
        /// </xdoc></para>
        /// </param>
        public BandCollectionStats(List<object> _in_raster_bands, object _out_stat_file)
        {
            this._in_raster_bands = _in_raster_bands;
            this._out_stat_file = _out_stat_file;
        }
        public override string ToolboxName => "Spatial Analyst Tools";

        public override string ToolName => "Band Collection Statistics";

        public override string CallName => "sa.BandCollectionStats";

        public override List<string> AcceptEnvironments => ["scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_raster_bands, _out_stat_file, _compute_matrices.GetGPValue()];

        /// <summary>
        /// <para>Input raster bands</para>
        /// <para><xdoc>
        ///   <para>The input raster bands.</para>
        ///   <para>They can be integer or floating point type.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输入栅格波段。</para>
        ///   <para>它们可以是整数类型或浮点类型。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input raster bands")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _in_raster_bands { get; set; }


        /// <summary>
        /// <para>Output statistics file</para>
        /// <para><xdoc>
        ///   <para>The output ASCII file containing the statistics.</para>
        ///   <para>A .txt extension is required.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>包含统计信息的输出 ASCII 文件。</para>
        ///   <para>需要.txt扩展。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output statistics file")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_stat_file { get; set; }


        /// <summary>
        /// <para>Compute covariance and correlation matrices</para>
        /// <para><xdoc>
        ///   <para>Specifies whether covariance and correlation matrices are calculated.</para>
        ///   <bulletList>
        ///     <bullet_item>Unchecked—Only the basic statistical measures (minimum, maximum, mean, and standard deviation) will be calculated for every layer. This is the default.</bullet_item><para/>
        ///     <bullet_item>Checked—In addition to the standard statistics calculated, the covariance and correlation matrices will also be determined.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定是否计算协方差和相关矩阵。</para>
        ///   <bulletList>
        ///     <bullet_item>未选中—仅计算每个图层的基本统计测量值（最小值、最大值、平均值和标准差）。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>选中 - 除了计算的标准统计量外，还将确定协方差和相关矩阵。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Compute covariance and correlation matrices")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _compute_matrices_value _compute_matrices { get; set; } = _compute_matrices_value._false;

        public enum _compute_matrices_value
        {
            /// <summary>
            /// <para>BRIEF</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("BRIEF")]
            [GPEnumValue("false")]
            _false,

            /// <summary>
            /// <para>DETAILED</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DETAILED")]
            [GPEnumValue("true")]
            _true,

        }

        public BandCollectionStats SetEnv(object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}